<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="version" content="Alidao v1.0 20151012">
    <meta http-equiv="Cache-Control" content="must-revalidate,no-cache">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
    <link type="text/css" rel="stylesheet" href="${ctx}/static/healthassess/css/common.css" />
    <link rel="stylesheet" href="${ctx}/static/healthassess/css/list.css">
    <link rel="stylesheet" href="${ctx}/static/healthassess/css/health.css">
</head>
<body>
<div class="container health">

    <div class="result" id="result">
        <c:if test="${exited}">
            <ul class="list">
                <li><a href="${ctx}/h5/health/base?uid=${uid}&questionnaireId=0"><label>基本信息评估</label>
                    <c:forEach items="${assessment}" var="map">
                        <c:if test="${map.key eq '0'}">
                            <font style="color: #ff6633;padding-left: 20%"><fmt:formatDate value="${assessment['0'].created}" pattern="yyyy-MM-dd"/></font>
                        </c:if>
                    </c:forEach>
                    <i class="arrow f-right"></i></a>
                </li>
                <li><a href="${ctx}/h5/health/lifestyle?uid=${uid}&questionnaireId=1"><label>生活习惯评估</label>
                    <c:forEach items="${assessment}" var="map">
                        <c:if test="${map.key eq '1'}">
                            <font style="color: #ff6633;padding-left: 20%"><fmt:formatDate value="${assessment['1'].created}" pattern="yyyy-MM-dd"/></font>
                        </c:if>
                    </c:forEach>
                    <i class="arrow f-right"></i></a></li>
                <li><a href="${ctx}/h5/health/psychological?uid=${uid}&questionnaireId=2"><label>心理状态评估</label>
                    <c:forEach items="${assessment}" var="map">
                        <c:if test="${map.key eq '2'}">
                            <font style="color: #ff6633;padding-left: 20%"><fmt:formatDate value="${assessment['2'].created}" pattern="yyyy-MM-dd"/></font>
                        </c:if>
                    </c:forEach>
                    <i class="arrow f-right"></i></a></li>
                <li><a href="${ctx}/h5/health/family?uid=${uid}&questionnaireId=3"><label>家庭状况评估</label>
                    <c:forEach items="${assessment}" var="map">
                        <c:if test="${map.key eq '3'}">
                            <font style="color: #ff6633;padding-left: 20%"><fmt:formatDate value="${assessment['3'].created}" pattern="yyyy-MM-dd"/></font>
                        </c:if>
                    </c:forEach>
                    <i class="arrow f-right"></i></a></li>
                <%--<li <c:if test="${age<65}">style="display: none;"</c:if> ><a href="${ctx}/h5/health/old?uid=${uid}&questionnaire_id=4"><label>老年人生活评定</label>
                    <c:forEach items="${assessment}" var="map">
                        <c:if test="${map.key eq '4'}">
                            <font style="color: #ff6633;padding-left: 20%"><fmt:formatDate value="${assessment['4'].created}" pattern="yyyy-MM-dd"/></font>
                        </c:if>
                    </c:forEach>
                    <i class="arrow f-right"></i></a></li>--%>
            </ul>
        </c:if>
        <c:forEach items="${assessment}" var="entry">
            ${entry.value.result}
        </c:forEach>
    </div>
</div>
</body>
<script src="${ctx}/static/healthassess/js/jquery-2.1.4.min.js"></script>

<script>
    $(function() {
        $("#result").show();
    });
</script>
</html>